package framework;

import org.newdawn.slick.AngelCodeFont;
import org.newdawn.slick.SlickException;

public class FontManager {
	
	private static AngelCodeFont little = null;
	
	private static AngelCodeFont menuHover = null;
	
	private static AngelCodeFont big  = null;
	
	private static AngelCodeFont timer  = null;
	
	public static AngelCodeFont getLittle() {
		if (little == null) {
			try {
				little = new AngelCodeFont(C.FONTS_FOLDER + "little.fnt", C.FONTS_FOLDER + "little.png");
			} catch (SlickException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return little;
	}
	
	public static AngelCodeFont getBig() {
		if (big == null) {
			try {
				big = new AngelCodeFont(C.FONTS_FOLDER + "font.fnt", C.FONTS_FOLDER + "font.png");
			} catch (SlickException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		return big;
	}
	
	public static AngelCodeFont getMenuHover() {
		if (menuHover == null) {
			try {
				menuHover = new AngelCodeFont(C.FONTS_FOLDER + "menu_hover.fnt", C.FONTS_FOLDER + "menu_hover.png");
			} catch (SlickException e) {
				e.printStackTrace();
			}
		}
		return menuHover;
	}
	
	public static AngelCodeFont getTimer() {
		if (timer == null) {
			try {
				timer = new AngelCodeFont(C.FONTS_FOLDER + "test.fnt", C.FONTS_FOLDER + "test.png");
			} catch (SlickException e) {
				e.printStackTrace();
			}
		}
		return timer;
	}
}
